#pragma once
#include "MeshObjectBase.h"
class TopoDS_Shape;
class ScriptBase : public MeshObjectBase
{
public:
	ScriptBase(ZMString strObjName = "");

	~ScriptBase();

protected:
	void TriangleShape(const TopoDS_Shape& shape, ZMVector<ZMPoint3D>& vPnt, ZMVector<ZMPoint3D>& vNormal, ZMVector<ZMPoint3D>& vTangentData, ZMVector<int>& vTriIndex);
	int TriangleShapeWithOcc(
		const TopoDS_Shape& shape,
		ZMVector<ZMPoint3D>& vPnt, 	ZMVector<ZMPoint2D>& vUV, ZMVector<ZMPoint3D>& vNormal, ZMVector<ZMPoint3D>& vTangentData, 
		ZMVector<int>& vTriIndex,
		const ZMPoint2D theUVOrigin = ZMPoint2D(0,0),
		const ZMPoint2D theUVRepeat = ZMPoint2D(1, 1),
		ZMPoint2D theUVScale =  ZMPoint2D(1, 1)
	);

};

